<template>
    <div class="dec_contain">
        <h1>{{info.title}}</h1>
        <hr>
        <div class="contain" v-html="info.content">

        </div>
    </div>
</template>
<script>
export default {
    data(){
        return {
            info:{}
        }
    },
    created(){
        this.getdec()
           

    },
    methods : {
        getdec(){
            this.$http.get("api/goods/getdesc/"+this.$route.params.id).then(result =>{
                if(result.body.status===0){
                    this.info = result.body.message[0]
                }
            })
        }
    }
}
</script>
<style lang="scss">
    .dec_contain{
        h1 {
            font-size: 14px;
            text-align: center;
            color:blue;
        }
        .contain {
            img {
                width:100%;
            }
        }
    }
</style>